package com.xbongbong.saas.service;

import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.pro.opportunityuser.pojo.dto.ClueUserDeleteBatchDTO;
import com.xbongbong.pro.opportunityuser.pojo.vo.ClueUserDeleteBatchVO;
import com.xbongbong.sys.domain.entity.UserEntity;

import java.util.List;

public interface ClueUserService {
    /**
     * 批量删除
     * @param clueUserDeleteBatchDTO
     * @return com.xbongbong.pro.contactuser.pojo.vo.ClueUserDeleteBatchVO
     * @throws XbbException 业务异常
     */
    ClueUserDeleteBatchVO deleteBatch(ClueUserDeleteBatchDTO clueUserDeleteBatchDTO) throws XbbException;

    void dataConsistencyUpdateUser(String corpid, String userId, String userName, String userAvatar) throws XbbException;

    /**
     * 获取线索负责人
     * @param clueIds 客户id集合
     * @param corpid 公司id
     * @param isMain 是否主负责人 0， 1， null
     * @return
     */
    List<UserEntity> getMainUserList(List<Long> clueIds, String corpid, Integer isMain);
}
